package my.study.java.lang.reflect.Field.examples;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;

public class Introduction {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Class<?> arraylist = ArrayList.class;
		Field[] fields = arraylist.getDeclaredFields();
		for (Field field : fields) {
			pl(Modifier.toString(field.getModifiers()) +  " " + field.getType().getSimpleName() + " " + field.getName());
		}

	}
	public static void pl(Object o) {
		System.out.println(o);
	}

	
}
